﻿using System;
using System.Collections.Generic;
using System.Text;
using ScriptsGenerator.Manager;
using ScriptDumper.Manager;

namespace ScriptsGenerator.Helper
{
    public class Context
    {
        private static Context _instance = new Context();

        private Context() { }

        public static Context GetInstance()
        {
            return _instance;
        }

        private Dictionary<string, DbVersion> _versions;
        public Dictionary<string, DbVersion> Versions
        {
            get
            {
                if (_versions == null)
                    _versions = new Dictionary<string, DbVersion>();
                return _versions;
            }
            set
            {
                _versions = value;
            }
        }

        private Dictionary<string, DbTable> _tables;
        public Dictionary<string, DbTable> Tables
        {
            get
            {
                if (_tables == null)
                    _tables = new Dictionary<string, DbTable>();
                return _tables;
            }
            set
            {
                _tables = value;
            }

        }
    }
}
